/*
 * MainPage.java
 *
 * Created on October 29, 2011, 3:55 PM
 */

package VIMS;


import com.mysql.jdbc.ResultSetMetaData;
import java.awt.*;

import java.sql.*;
import java.util.Vector;
import javax.swing.table.DefaultTableModel;

/**
 *
 * @author  student-1
 */
public class MainPage extends javax.swing.JFrame {

    /** Creates new form MainPage */
//    Employee EmpOb   = new Employee();
//    Dealer   DealOb  = new Dealer();
//    Truck    TruckOb = new Truck(); 

    DefaultTableModel Tmodel = new DefaultTableModel();

    private Connection con;
    private Statement stmt=null;
    private ResultSet rset=null;
    String host="jdbc:mysql://localhost:3306/vims";
    String username="root";
    String password="123";
    
    public MainPage() {

        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        initComponents();
        setSize(screenSize.width , screenSize.height - 38); 
        
        
        ProfilePanel.setVisible(false);    
        FunctionPanel.setVisible(false);   //1
        SchediulePanel.setVisible(false);
        HelpPanel.setVisible(false);
        SettingPanel.setVisible(false);    //1.1
        EmployeePanel.setVisible(false);
        DealerPanel.setVisible(false); 
        TruckPanel.setVisible(false);

    }
    
    public MainPage(String UserName) {
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        initComponents();
        setSize(screenSize.width , screenSize.height - 38); 
        Object[] DataInfo = new Object[17];
        ExtractInfo info=new ExtractInfo(UserName);
        DataInfo = info.GetEmpInfo();
        ID.setText(DataInfo[0].toString());
        Status.setText(DataInfo[12].toString());
        FirstName.setText(DataInfo[1].toString());
        LastName.setText(DataInfo[2].toString());
        IC.setText(DataInfo[3].toString());
        Email.setText(DataInfo[4].toString());
        Contact.setText(DataInfo[5].toString());
        Username.setText(DataInfo[15].toString());
        //Password.setText(DataInfo[].toString());
        //RePassword.setText(DataInfo[9].toString());
        Address.setText(DataInfo[6].toString());
        PostCode.setText(DataInfo[7].toString());
        City.setText(DataInfo[8].toString());
        
        JobTitle.setSelectedItem(DataInfo[9]);
        Gender.setSelectedItem(DataInfo[12]);
        Race.setSelectedItem(DataInfo[13]);
        Religion.setSelectedItem(DataInfo[14]);

        
        
        
        ProfilePanel.setVisible(false);    
        FunctionPanel.setVisible(false);   //1
        SchediulePanel.setVisible(false);
        HelpPanel.setVisible(false);
        SettingPanel.setVisible(false);    //1.1
        EmployeePanel.setVisible(false);
        DealerPanel.setVisible(false); 
        TruckPanel.setVisible(false);

    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel21 = new javax.swing.JLabel();
        Main = new javax.swing.JPanel();
        Header = new javax.swing.JPanel();
        Logo = new javax.swing.JLabel();
        CompanyName = new javax.swing.JLabel();
        Body = new javax.swing.JPanel();
        Menu = new javax.swing.JPanel();
        ProfileButton = new javax.swing.JButton();
        FunctionButton = new javax.swing.JButton();
        ScheduleButton = new javax.swing.JButton();
        HelpButton = new javax.swing.JButton();
        LogoutButton = new javax.swing.JButton();
        MultiPanel = new javax.swing.JPanel();
        MultiPanelSupport = new javax.swing.JPanel();
        ProfilePanel = new javax.swing.JPanel();
        SupportRight = new javax.swing.JLabel();
        SupportLeft = new javax.swing.JLabel();
        Picture = new javax.swing.JLabel();
        Instruction = new javax.swing.JLabel();
        Separator = new javax.swing.JSeparator();
        CancelButton = new javax.swing.JButton();
        SaveButton = new javax.swing.JButton();
        ProfileInformationPanel = new javax.swing.JPanel();
        jLayeredPane1 = new javax.swing.JLayeredPane();
        IDLabel = new javax.swing.JLabel();
        StatusLabel = new javax.swing.JLabel();
        ID = new javax.swing.JLabel();
        Status = new javax.swing.JLabel();
        LastNameLabel = new javax.swing.JLabel();
        FirstnameLAbel = new javax.swing.JLabel();
        FirstName = new javax.swing.JTextField();
        LastName = new javax.swing.JTextField();
        IC = new javax.swing.JTextField();
        ICLabel = new javax.swing.JLabel();
        EG_IC = new javax.swing.JLabel();
        EmailLabel = new javax.swing.JLabel();
        ContactLabel = new javax.swing.JLabel();
        Contact = new javax.swing.JTextField();
        Email = new javax.swing.JTextField();
        EG_Contact = new javax.swing.JLabel();
        Username = new javax.swing.JTextField();
        UsernameLabel = new javax.swing.JLabel();
        PasswordLabel = new javax.swing.JLabel();
        ChangeButton = new javax.swing.JButton();
        PostCodeLabel = new javax.swing.JLabel();
        AddressLabel = new javax.swing.JLabel();
        CityLabel = new javax.swing.JLabel();
        JobTitleLabel = new javax.swing.JLabel();
        GenderLabel = new javax.swing.JLabel();
        RaceLabel = new javax.swing.JLabel();
        ReligionLabel = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        Address = new javax.swing.JTextArea();
        PostCode = new javax.swing.JTextField();
        City = new javax.swing.JTextField();
        JobTitle = new javax.swing.JComboBox();
        Gender = new javax.swing.JComboBox();
        Race = new javax.swing.JComboBox();
        Religion = new javax.swing.JComboBox();
        SchediulePanel = new javax.swing.JPanel();
        ScheduleInfo = new javax.swing.JLabel();
        FunctionPanel = new javax.swing.JPanel();
        SettingButton = new javax.swing.JButton();
        ProductionButton = new javax.swing.JButton();
        FA_button = new javax.swing.JButton();
        DistributionButton = new javax.swing.JButton();
        HistoricalDataButton = new javax.swing.JButton();
        HelpPanel = new javax.swing.JPanel();
        HelpInfo = new javax.swing.JLabel();
        SettingPanel = new javax.swing.JPanel();
        EmployeeButton = new javax.swing.JButton();
        DealerButton = new javax.swing.JButton();
        TruckButton = new javax.swing.JButton();
        EmployeePanel = new javax.swing.JPanel();
        EmployeePanelSupport = new javax.swing.JPanel();
        EmployeeLabel = new javax.swing.JLabel();
        EmployeeScrollPane = new javax.swing.JScrollPane();
        EmployeeTable = new javax.swing.JTable();
        FuctionPanel1 = new javax.swing.JPanel();
        AddButton = new javax.swing.JButton();
        DeleteButton = new javax.swing.JButton();
        ViewButton = new javax.swing.JButton();
        CancelButton2 = new javax.swing.JButton();
        SearchPanel = new javax.swing.JPanel();
        SearchLabel = new javax.swing.JLabel();
        SearchTextField = new javax.swing.JTextField();
        SearchComboBox = new javax.swing.JComboBox();
        SearchButton = new javax.swing.JButton();
        PagePanel = new javax.swing.JPanel();
        PageLabel = new javax.swing.JLabel();
        CurrentPageLabel = new javax.swing.JLabel();
        TotalPageLabel = new javax.swing.JLabel();
        Slesh = new javax.swing.JLabel();
        Separator2 = new javax.swing.JLabel();
        Separator3 = new javax.swing.JLabel();
        JumptoTextField = new javax.swing.JTextField();
        JumptoLabel = new javax.swing.JLabel();
        JumpButton = new javax.swing.JButton();
        TotalRecordLabel = new javax.swing.JLabel();
        RecordFoundLabel = new javax.swing.JLabel();
        Separator4 = new javax.swing.JLabel();
        PreviousButton = new javax.swing.JButton();
        NextButton = new javax.swing.JButton();
        DealerPanel = new javax.swing.JPanel();
        DealerPanelSupport = new javax.swing.JPanel();
        DealerLAbel = new javax.swing.JLabel();
        DealerScrollPane = new javax.swing.JScrollPane();
        DealerTable = new javax.swing.JTable();
        FunctionPanel2 = new javax.swing.JPanel();
        AddButton2 = new javax.swing.JButton();
        DeleteButton2 = new javax.swing.JButton();
        ViewButton2 = new javax.swing.JButton();
        CancelButton3 = new javax.swing.JButton();
        SearchPanel2 = new javax.swing.JPanel();
        SearchLabel2 = new javax.swing.JLabel();
        SearchTextField2 = new javax.swing.JTextField();
        SearchComboBox2 = new javax.swing.JComboBox();
        SearcjButton2 = new javax.swing.JButton();
        PagePane2l = new javax.swing.JPanel();
        PageLabel2 = new javax.swing.JLabel();
        CurrentPageLAbel2 = new javax.swing.JLabel();
        TotalPageLabel2 = new javax.swing.JLabel();
        Slesh2 = new javax.swing.JLabel();
        Separator5 = new javax.swing.JLabel();
        Separator6 = new javax.swing.JLabel();
        JumptoTextField2 = new javax.swing.JTextField();
        JumptoLabel2 = new javax.swing.JLabel();
        JumpButton2 = new javax.swing.JButton();
        TotalRecordLabel2 = new javax.swing.JLabel();
        RecordFoundLabel2 = new javax.swing.JLabel();
        Separator7 = new javax.swing.JLabel();
        PreviousButton2 = new javax.swing.JButton();
        NextButton2 = new javax.swing.JButton();
        TruckPanel = new javax.swing.JPanel();
        TruckPanelSupport = new javax.swing.JPanel();
        TruckLabel = new javax.swing.JLabel();
        TruckScrollPane = new javax.swing.JScrollPane();
        TruckTable = new javax.swing.JTable();
        FunctionPanel3 = new javax.swing.JPanel();
        AddButton3 = new javax.swing.JButton();
        DeleteButton3 = new javax.swing.JButton();
        ViewButton3 = new javax.swing.JButton();
        CancelButton4 = new javax.swing.JButton();
        SearchPanel3 = new javax.swing.JPanel();
        SearchLabel3 = new javax.swing.JLabel();
        SearchTextField3 = new javax.swing.JTextField();
        SearchComboBox3 = new javax.swing.JComboBox();
        SearchButton3 = new javax.swing.JButton();
        PagePanel3 = new javax.swing.JPanel();
        PageLabel3 = new javax.swing.JLabel();
        CurrentPageLabel3 = new javax.swing.JLabel();
        TotalPageLabel3 = new javax.swing.JLabel();
        Slesh3 = new javax.swing.JLabel();
        Separator8 = new javax.swing.JLabel();
        Separator9 = new javax.swing.JLabel();
        JumptoTextField3 = new javax.swing.JTextField();
        JumptoLabel3 = new javax.swing.JLabel();
        JumpButton3 = new javax.swing.JButton();
        TotalRecordLabel3 = new javax.swing.JLabel();
        RecordFoundLabel3 = new javax.swing.JLabel();
        Separator10 = new javax.swing.JLabel();
        PreviousButton3 = new javax.swing.JButton();
        NextButton3 = new javax.swing.JButton();
        CompanyInfo = new javax.swing.JLabel();

        jLabel21.setText("jLabel21");

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(800, 600));

        Main.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        Header.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.LOWERED));

        Logo.setFont(new java.awt.Font("Times New Roman", 3, 24));
        Logo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Logo.setText("Logo");
        Logo.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        CompanyName.setFont(new java.awt.Font("Times New Roman", 3, 24));
        CompanyName.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        CompanyName.setText("Company Name");
        CompanyName.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        javax.swing.GroupLayout HeaderLayout = new javax.swing.GroupLayout(Header);
        Header.setLayout(HeaderLayout);
        HeaderLayout.setHorizontalGroup(
            HeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(HeaderLayout.createSequentialGroup()
                .addComponent(Logo, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(CompanyName, javax.swing.GroupLayout.DEFAULT_SIZE, 1263, Short.MAX_VALUE))
        );
        HeaderLayout.setVerticalGroup(
            HeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(Logo, javax.swing.GroupLayout.DEFAULT_SIZE, 118, Short.MAX_VALUE)
            .addComponent(CompanyName, javax.swing.GroupLayout.DEFAULT_SIZE, 118, Short.MAX_VALUE)
        );

        Body.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.LOWERED));

        Menu.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        ProfileButton.setText("Profile");
        ProfileButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ProfileButtonActionPerformed(evt);
            }
        });

        FunctionButton.setText("Function");
        FunctionButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                FunctionButtonActionPerformed(evt);
            }
        });

        ScheduleButton.setText("Schedule");
        ScheduleButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ScheduleButtonActionPerformed(evt);
            }
        });

        HelpButton.setText("Help");
        HelpButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                HelpButtonActionPerformed(evt);
            }
        });

        LogoutButton.setText("logout");
        LogoutButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                LogoutButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout MenuLayout = new javax.swing.GroupLayout(Menu);
        Menu.setLayout(MenuLayout);
        MenuLayout.setHorizontalGroup(
            MenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(MenuLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(MenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(HelpButton, javax.swing.GroupLayout.DEFAULT_SIZE, 95, Short.MAX_VALUE)
                    .addComponent(ProfileButton, javax.swing.GroupLayout.DEFAULT_SIZE, 95, Short.MAX_VALUE)
                    .addComponent(ScheduleButton, javax.swing.GroupLayout.DEFAULT_SIZE, 95, Short.MAX_VALUE)
                    .addComponent(FunctionButton, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 95, Short.MAX_VALUE)
                    .addComponent(LogoutButton, javax.swing.GroupLayout.DEFAULT_SIZE, 95, Short.MAX_VALUE))
                .addContainerGap())
        );
        MenuLayout.setVerticalGroup(
            MenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(MenuLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(ProfileButton, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(FunctionButton, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ScheduleButton, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(HelpButton, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(LogoutButton, javax.swing.GroupLayout.DEFAULT_SIZE, 154, Short.MAX_VALUE)
                .addContainerGap())
        );

        MultiPanel.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        MultiPanelSupport.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                MultiPanelSupportMouseEntered(evt);
            }
        });

        ProfilePanel.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.LOWERED));

        SupportRight.setFont(new java.awt.Font("Times New Roman", 3, 18));
        SupportRight.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);

        SupportLeft.setFont(new java.awt.Font("Times New Roman", 3, 18));
        SupportLeft.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);

        Picture.setFont(new java.awt.Font("Times New Roman", 3, 18));
        Picture.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Picture.setText("Picture");
        Picture.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        Instruction.setFont(new java.awt.Font("Tahoma", 1, 11));
        Instruction.setForeground(new java.awt.Color(255, 0, 0));
        Instruction.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Instruction.setText("Click Picture to Change");

        CancelButton.setText("Cancel");
        CancelButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CancelButtonActionPerformed(evt);
            }
        });

        SaveButton.setText("Save");

        ProfileInformationPanel.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        ProfileInformationPanel.setPreferredSize(new java.awt.Dimension(800, 400));

        jLayeredPane1.setPreferredSize(new java.awt.Dimension(800, 400));

        IDLabel.setText("ID Number :");
        IDLabel.setBounds(250, 20, 92, 30);
        jLayeredPane1.add(IDLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        StatusLabel.setText("Status :");
        StatusLabel.setBounds(250, 60, 70, 30);
        jLayeredPane1.add(StatusLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        ID.setFont(new java.awt.Font("Times New Roman", 0, 12));
        ID.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        ID.setBounds(350, 20, 118, 30);
        jLayeredPane1.add(ID, javax.swing.JLayeredPane.DEFAULT_LAYER);

        Status.setFont(new java.awt.Font("Times New Roman", 0, 12));
        Status.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        Status.setBounds(350, 60, 118, 30);
        jLayeredPane1.add(Status, javax.swing.JLayeredPane.DEFAULT_LAYER);

        LastNameLabel.setText("Last Name :");
        LastNameLabel.setBounds(250, 140, 90, 30);
        jLayeredPane1.add(LastNameLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        FirstnameLAbel.setText("First Name :");
        FirstnameLAbel.setBounds(250, 100, 79, 30);
        jLayeredPane1.add(FirstnameLAbel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        FirstName.setFont(new java.awt.Font("Times New Roman", 0, 12));
        FirstName.setBounds(350, 100, 180, 30);
        jLayeredPane1.add(FirstName, javax.swing.JLayeredPane.DEFAULT_LAYER);

        LastName.setFont(new java.awt.Font("Times New Roman", 0, 12));
        LastName.setBounds(350, 140, 180, 30);
        jLayeredPane1.add(LastName, javax.swing.JLayeredPane.DEFAULT_LAYER);

        IC.setFont(new java.awt.Font("Times New Roman", 0, 12));
        IC.setBounds(350, 180, 180, 30);
        jLayeredPane1.add(IC, javax.swing.JLayeredPane.DEFAULT_LAYER);

        ICLabel.setText("IC Number :");
        ICLabel.setBounds(250, 180, 77, 30);
        jLayeredPane1.add(ICLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        EG_IC.setFont(new java.awt.Font("Times New Roman", 1, 11));
        EG_IC.setText("xxxxxx-xx-xxxx");
        EG_IC.setBounds(540, 180, 100, 30);
        jLayeredPane1.add(EG_IC, javax.swing.JLayeredPane.DEFAULT_LAYER);

        EmailLabel.setText("Email Address :");
        EmailLabel.setBounds(250, 220, 90, 30);
        jLayeredPane1.add(EmailLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        ContactLabel.setText("Contact Number :");
        ContactLabel.setBounds(250, 260, 100, 30);
        jLayeredPane1.add(ContactLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        Contact.setFont(new java.awt.Font("Times New Roman", 0, 12));
        Contact.setBounds(350, 260, 177, 30);
        jLayeredPane1.add(Contact, javax.swing.JLayeredPane.DEFAULT_LAYER);

        Email.setFont(new java.awt.Font("Times New Roman", 0, 12));
        Email.setBounds(350, 220, 180, 30);
        jLayeredPane1.add(Email, javax.swing.JLayeredPane.DEFAULT_LAYER);

        EG_Contact.setFont(new java.awt.Font("Times New Roman", 1, 12));
        EG_Contact.setText("xxx-xxxxxxxx");
        EG_Contact.setBounds(540, 260, 86, 30);
        jLayeredPane1.add(EG_Contact, javax.swing.JLayeredPane.DEFAULT_LAYER);
        Username.setBounds(350, 300, 177, 30);
        jLayeredPane1.add(Username, javax.swing.JLayeredPane.DEFAULT_LAYER);

        UsernameLabel.setText("Username :");
        UsernameLabel.setBounds(250, 300, 90, 30);
        jLayeredPane1.add(UsernameLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        PasswordLabel.setText("Password :");
        PasswordLabel.setBounds(250, 340, 90, 30);
        jLayeredPane1.add(PasswordLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        ChangeButton.setText("Change");
        ChangeButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ChangeButtonActionPerformed(evt);
            }
        });
        ChangeButton.setBounds(350, 340, 90, 30);
        jLayeredPane1.add(ChangeButton, javax.swing.JLayeredPane.DEFAULT_LAYER);

        PostCodeLabel.setText("Post Code :");
        PostCodeLabel.setBounds(760, 140, 100, 30);
        jLayeredPane1.add(PostCodeLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        AddressLabel.setText("Address :");
        AddressLabel.setBounds(760, 60, 90, 30);
        jLayeredPane1.add(AddressLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        CityLabel.setText("City :");
        CityLabel.setBounds(760, 180, 90, 30);
        jLayeredPane1.add(CityLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        JobTitleLabel.setText("Job Title :");
        JobTitleLabel.setBounds(760, 220, 80, 30);
        jLayeredPane1.add(JobTitleLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        GenderLabel.setText("Gender :");
        GenderLabel.setBounds(760, 260, 90, 30);
        jLayeredPane1.add(GenderLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        RaceLabel.setText("Race :");
        RaceLabel.setBounds(760, 300, 90, 30);
        jLayeredPane1.add(RaceLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        ReligionLabel.setText("Religion :");
        ReligionLabel.setBounds(760, 340, 90, 30);
        jLayeredPane1.add(ReligionLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        Address.setColumns(20);
        Address.setRows(5);
        Address.setAutoscrolls(false);
        jScrollPane1.setViewportView(Address);

        jScrollPane1.setBounds(860, 60, 180, 70);
        jLayeredPane1.add(jScrollPane1, javax.swing.JLayeredPane.DEFAULT_LAYER);
        PostCode.setBounds(860, 140, 180, 30);
        jLayeredPane1.add(PostCode, javax.swing.JLayeredPane.DEFAULT_LAYER);
        City.setBounds(860, 180, 180, 30);
        jLayeredPane1.add(City, javax.swing.JLayeredPane.DEFAULT_LAYER);

        JobTitle.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Admin", "Clerk", "Head of Logistic", "Planning Manager" }));
        JobTitle.setBounds(860, 220, 142, 30);
        jLayeredPane1.add(JobTitle, javax.swing.JLayeredPane.DEFAULT_LAYER);

        Gender.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Female", "Male" }));
        Gender.setBounds(860, 260, 142, 30);
        jLayeredPane1.add(Gender, javax.swing.JLayeredPane.DEFAULT_LAYER);

        Race.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Malay", "Chinese", "Indian", "Other" }));
        Race.setBounds(860, 300, 142, 30);
        jLayeredPane1.add(Race, javax.swing.JLayeredPane.DEFAULT_LAYER);

        Religion.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Islam", "Buddha", "Christian", "Hindu", "other" }));
        Religion.setBounds(860, 340, 142, 30);
        jLayeredPane1.add(Religion, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout ProfileInformationPanelLayout = new javax.swing.GroupLayout(ProfileInformationPanel);
        ProfileInformationPanel.setLayout(ProfileInformationPanelLayout);
        ProfileInformationPanelLayout.setHorizontalGroup(
            ProfileInformationPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1272, Short.MAX_VALUE)
        );
        ProfileInformationPanelLayout.setVerticalGroup(
            ProfileInformationPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 450, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout ProfilePanelLayout = new javax.swing.GroupLayout(ProfilePanel);
        ProfilePanel.setLayout(ProfilePanelLayout);
        ProfilePanelLayout.setHorizontalGroup(
            ProfilePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, ProfilePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(ProfilePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(ProfileInformationPanel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 1278, Short.MAX_VALUE)
                    .addComponent(Separator, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 1278, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, ProfilePanelLayout.createSequentialGroup()
                        .addComponent(SupportLeft, javax.swing.GroupLayout.DEFAULT_SIZE, 553, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(ProfilePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(Picture, javax.swing.GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE)
                            .addComponent(Instruction, javax.swing.GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(SupportRight, javax.swing.GroupLayout.DEFAULT_SIZE, 545, Short.MAX_VALUE))
                    .addGroup(ProfilePanelLayout.createSequentialGroup()
                        .addComponent(SaveButton, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(CancelButton, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        ProfilePanelLayout.setVerticalGroup(
            ProfilePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ProfilePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(ProfilePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, ProfilePanelLayout.createSequentialGroup()
                        .addComponent(Picture, javax.swing.GroupLayout.DEFAULT_SIZE, 221, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(Instruction))
                    .addGroup(ProfilePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(SupportRight, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(SupportLeft, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(Separator, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ProfileInformationPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 456, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(ProfilePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(CancelButton)
                    .addComponent(SaveButton))
                .addContainerGap())
        );

        ScheduleInfo.setFont(new java.awt.Font("Times New Roman", 3, 36));
        ScheduleInfo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        ScheduleInfo.setText("Schedule");
        ScheduleInfo.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        javax.swing.GroupLayout SchediulePanelLayout = new javax.swing.GroupLayout(SchediulePanel);
        SchediulePanel.setLayout(SchediulePanelLayout);
        SchediulePanelLayout.setHorizontalGroup(
            SchediulePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SchediulePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(ScheduleInfo, javax.swing.GroupLayout.DEFAULT_SIZE, 1304, Short.MAX_VALUE)
                .addContainerGap())
        );
        SchediulePanelLayout.setVerticalGroup(
            SchediulePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SchediulePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(ScheduleInfo, javax.swing.GroupLayout.DEFAULT_SIZE, 786, Short.MAX_VALUE)
                .addContainerGap())
        );

        FunctionPanel.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        FunctionPanel.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                FunctionPanelMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                FunctionPanelMouseExited(evt);
            }
        });

        SettingButton.setText("Setting");
        SettingButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                SettingButtonMouseEntered(evt);
            }
        });
        SettingButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                SettingButtonActionPerformed(evt);
            }
        });

        ProductionButton.setText("Production");
        ProductionButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                ProductionButtonMouseEntered(evt);
            }
        });
        ProductionButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ProductionButtonActionPerformed(evt);
            }
        });

        FA_button.setText("Forecast & Analysis");
        FA_button.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                FA_buttonMouseEntered(evt);
            }
        });
        FA_button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                FA_buttonActionPerformed(evt);
            }
        });

        DistributionButton.setText("Distribution");
        DistributionButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                DistributionButtonMouseEntered(evt);
            }
        });
        DistributionButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                DistributionButtonActionPerformed(evt);
            }
        });

        HistoricalDataButton.setText("Historical Data");
        HistoricalDataButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                HistoricalDataButtonMouseEntered(evt);
            }
        });
        HistoricalDataButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                HistoricalDataButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout FunctionPanelLayout = new javax.swing.GroupLayout(FunctionPanel);
        FunctionPanel.setLayout(FunctionPanelLayout);
        FunctionPanelLayout.setHorizontalGroup(
            FunctionPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(FunctionPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(FunctionPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(SettingButton, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(ProductionButton, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(FA_button, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(DistributionButton, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(HistoricalDataButton, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        FunctionPanelLayout.setVerticalGroup(
            FunctionPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(FunctionPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(SettingButton, javax.swing.GroupLayout.DEFAULT_SIZE, 92, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ProductionButton, javax.swing.GroupLayout.DEFAULT_SIZE, 93, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(FA_button, javax.swing.GroupLayout.DEFAULT_SIZE, 93, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(DistributionButton, javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(HistoricalDataButton, javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE)
                .addContainerGap())
        );

        HelpInfo.setFont(new java.awt.Font("Times New Roman", 3, 36));
        HelpInfo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        HelpInfo.setText("Help");
        HelpInfo.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        javax.swing.GroupLayout HelpPanelLayout = new javax.swing.GroupLayout(HelpPanel);
        HelpPanel.setLayout(HelpPanelLayout);
        HelpPanelLayout.setHorizontalGroup(
            HelpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(HelpPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(HelpInfo, javax.swing.GroupLayout.DEFAULT_SIZE, 1304, Short.MAX_VALUE)
                .addContainerGap())
        );
        HelpPanelLayout.setVerticalGroup(
            HelpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(HelpPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(HelpInfo, javax.swing.GroupLayout.DEFAULT_SIZE, 786, Short.MAX_VALUE)
                .addContainerGap())
        );

        SettingPanel.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        SettingPanel.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                SettingPanelMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                SettingPanelMouseExited(evt);
            }
        });

        EmployeeButton.setText("Employee");
        EmployeeButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                EmployeeButtonMouseEntered(evt);
            }
        });
        EmployeeButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                EmployeeButtonActionPerformed(evt);
            }
        });

        DealerButton.setText("Dealer");
        DealerButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                DealerButtonMouseEntered(evt);
            }
        });
        DealerButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                DealerButtonActionPerformed(evt);
            }
        });

        TruckButton.setText("Truck");
        TruckButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                TruckButtonMouseEntered(evt);
            }
        });
        TruckButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                TruckButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout SettingPanelLayout = new javax.swing.GroupLayout(SettingPanel);
        SettingPanel.setLayout(SettingPanelLayout);
        SettingPanelLayout.setHorizontalGroup(
            SettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SettingPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(SettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(EmployeeButton, javax.swing.GroupLayout.DEFAULT_SIZE, 154, Short.MAX_VALUE)
                    .addComponent(DealerButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(TruckButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(20, Short.MAX_VALUE))
        );
        SettingPanelLayout.setVerticalGroup(
            SettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SettingPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(EmployeeButton)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(DealerButton)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(TruckButton)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        EmployeePanelSupport.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.LOWERED));

        EmployeeLabel.setFont(new java.awt.Font("Times New Roman", 3, 14));
        EmployeeLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        EmployeeLabel.setText("Employee");
        EmployeeLabel.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        EmployeeTable.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        EmployeeTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null}
            },
            new String [] {
                " ID", "First Name", "Last Name", "IC", "Position"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        EmployeeScrollPane.setViewportView(EmployeeTable);
        EmployeeTable.getColumnModel().getColumn(0).setResizable(false);
        EmployeeTable.getColumnModel().getColumn(1).setResizable(false);
        EmployeeTable.getColumnModel().getColumn(2).setResizable(false);
        EmployeeTable.getColumnModel().getColumn(3).setResizable(false);
        EmployeeTable.getColumnModel().getColumn(4).setResizable(false);

        FuctionPanel1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        AddButton.setText("Add");
        AddButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                AddButtonActionPerformed(evt);
            }
        });

        DeleteButton.setText("Delete");

        ViewButton.setText("View");

        CancelButton2.setText("Cancel");
        CancelButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CancelButton2ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout FuctionPanel1Layout = new javax.swing.GroupLayout(FuctionPanel1);
        FuctionPanel1.setLayout(FuctionPanel1Layout);
        FuctionPanel1Layout.setHorizontalGroup(
            FuctionPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(FuctionPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(AddButton, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(DeleteButton, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 909, Short.MAX_VALUE)
                .addComponent(ViewButton, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(CancelButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        FuctionPanel1Layout.setVerticalGroup(
            FuctionPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(FuctionPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(FuctionPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(CancelButton2)
                    .addComponent(ViewButton)
                    .addComponent(AddButton, javax.swing.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE)
                    .addComponent(DeleteButton))
                .addContainerGap())
        );

        SearchPanel.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        SearchLabel.setFont(new java.awt.Font("Times New Roman", 1, 12));
        SearchLabel.setText("Search By");

        SearchComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "ID", "First Name", "Last Name", "IC", "Position" }));

        SearchButton.setText("Search");

        javax.swing.GroupLayout SearchPanelLayout = new javax.swing.GroupLayout(SearchPanel);
        SearchPanel.setLayout(SearchPanelLayout);
        SearchPanelLayout.setHorizontalGroup(
            SearchPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SearchPanelLayout.createSequentialGroup()
                .addComponent(SearchLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(SearchComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(SearchTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(SearchButton)
                .addContainerGap(849, Short.MAX_VALUE))
        );
        SearchPanelLayout.setVerticalGroup(
            SearchPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SearchPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(SearchLabel)
                .addComponent(SearchComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(SearchTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(SearchButton))
        );

        PagePanel.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        PageLabel.setFont(new java.awt.Font("Times New Roman", 1, 12));
        PageLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        PageLabel.setText("Page ");

        CurrentPageLabel.setFont(new java.awt.Font("Times New Roman", 1, 12));
        CurrentPageLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        CurrentPageLabel.setText("?");

        TotalPageLabel.setFont(new java.awt.Font("Times New Roman", 1, 12));
        TotalPageLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        TotalPageLabel.setText("?");

        Slesh.setFont(new java.awt.Font("Times New Roman", 1, 12));
        Slesh.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Slesh.setText("/");

        Separator2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        Separator3.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        JumptoLabel.setFont(new java.awt.Font("Times New Roman", 1, 12));
        JumptoLabel.setText("Jump to");

        JumpButton.setText("Jump");

        TotalRecordLabel.setFont(new java.awt.Font("Times New Roman", 1, 12));
        TotalRecordLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        TotalRecordLabel.setText("?");

        RecordFoundLabel.setFont(new java.awt.Font("Times New Roman", 1, 12));
        RecordFoundLabel.setText("Records Found");

        Separator4.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        PreviousButton.setText("Previous");

        NextButton.setText("Next");

        javax.swing.GroupLayout PagePanelLayout = new javax.swing.GroupLayout(PagePanel);
        PagePanel.setLayout(PagePanelLayout);
        PagePanelLayout.setHorizontalGroup(
            PagePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PagePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Separator2, javax.swing.GroupLayout.PREFERRED_SIZE, 4, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(PreviousButton, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(PageLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(CurrentPageLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(Slesh, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(TotalPageLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(NextButton, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(16, 16, 16)
                .addComponent(Separator3, javax.swing.GroupLayout.PREFERRED_SIZE, 4, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(TotalRecordLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(14, 14, 14)
                .addComponent(RecordFoundLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(Separator4, javax.swing.GroupLayout.PREFERRED_SIZE, 6, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(27, 27, 27)
                .addComponent(JumptoLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(JumptoTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(JumpButton, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(533, Short.MAX_VALUE))
        );
        PagePanelLayout.setVerticalGroup(
            PagePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PagePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PagePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(PagePanelLayout.createSequentialGroup()
                        .addComponent(NextButton)
                        .addGap(12, 12, 12))
                    .addGroup(PagePanelLayout.createSequentialGroup()
                        .addComponent(Separator2, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePanelLayout.createSequentialGroup()
                        .addComponent(PreviousButton)
                        .addGap(12, 12, 12))
                    .addGroup(PagePanelLayout.createSequentialGroup()
                        .addComponent(PageLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePanelLayout.createSequentialGroup()
                        .addComponent(CurrentPageLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePanelLayout.createSequentialGroup()
                        .addComponent(Slesh, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePanelLayout.createSequentialGroup()
                        .addComponent(TotalPageLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePanelLayout.createSequentialGroup()
                        .addComponent(Separator3, javax.swing.GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePanelLayout.createSequentialGroup()
                        .addComponent(TotalRecordLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePanelLayout.createSequentialGroup()
                        .addComponent(RecordFoundLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePanelLayout.createSequentialGroup()
                        .addComponent(Separator4, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePanelLayout.createSequentialGroup()
                        .addComponent(JumptoLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePanelLayout.createSequentialGroup()
                        .addComponent(JumptoTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePanelLayout.createSequentialGroup()
                        .addComponent(JumpButton, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(12, 12, 12))))
        );

        javax.swing.GroupLayout EmployeePanelSupportLayout = new javax.swing.GroupLayout(EmployeePanelSupport);
        EmployeePanelSupport.setLayout(EmployeePanelSupportLayout);
        EmployeePanelSupportLayout.setHorizontalGroup(
            EmployeePanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, EmployeePanelSupportLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(EmployeePanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(PagePanel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(EmployeeLabel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(FuctionPanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(SearchPanel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(EmployeeScrollPane, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 1278, Short.MAX_VALUE))
                .addContainerGap())
        );
        EmployeePanelSupportLayout.setVerticalGroup(
            EmployeePanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(EmployeePanelSupportLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(EmployeeLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(SearchPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(EmployeeScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 273, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(PagePanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 298, Short.MAX_VALUE)
                .addComponent(FuctionPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        javax.swing.GroupLayout EmployeePanelLayout = new javax.swing.GroupLayout(EmployeePanel);
        EmployeePanel.setLayout(EmployeePanelLayout);
        EmployeePanelLayout.setHorizontalGroup(
            EmployeePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(EmployeePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(EmployeePanelSupport, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        EmployeePanelLayout.setVerticalGroup(
            EmployeePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(EmployeePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(EmployeePanelSupport, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        DealerPanelSupport.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.LOWERED));

        DealerLAbel.setFont(new java.awt.Font("Times New Roman", 3, 14));
        DealerLAbel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        DealerLAbel.setText("Dealer");
        DealerLAbel.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        DealerTable.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        DealerTable.setFont(new java.awt.Font("Times New Roman", 1, 12));
        DealerTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null}
            },
            new String [] {
                " ID", "First Name", "Last Name", "IC", "Contact Person"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        DealerScrollPane.setViewportView(DealerTable);
        DealerTable.getColumnModel().getColumn(0).setResizable(false);
        DealerTable.getColumnModel().getColumn(1).setResizable(false);
        DealerTable.getColumnModel().getColumn(2).setResizable(false);
        DealerTable.getColumnModel().getColumn(3).setResizable(false);
        DealerTable.getColumnModel().getColumn(4).setResizable(false);

        FunctionPanel2.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        AddButton2.setText("Add");
        AddButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                AddButton2ActionPerformed(evt);
            }
        });

        DeleteButton2.setText("Delete");

        ViewButton2.setText("View");
        ViewButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ViewButton2ActionPerformed(evt);
            }
        });

        CancelButton3.setText("Cancel");
        CancelButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CancelButton3ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout FunctionPanel2Layout = new javax.swing.GroupLayout(FunctionPanel2);
        FunctionPanel2.setLayout(FunctionPanel2Layout);
        FunctionPanel2Layout.setHorizontalGroup(
            FunctionPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(FunctionPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(AddButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(DeleteButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 909, Short.MAX_VALUE)
                .addComponent(ViewButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(CancelButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        FunctionPanel2Layout.setVerticalGroup(
            FunctionPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(FunctionPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(FunctionPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(CancelButton3)
                    .addComponent(ViewButton2)
                    .addComponent(AddButton2, javax.swing.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE)
                    .addComponent(DeleteButton2))
                .addContainerGap())
        );

        SearchPanel2.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        SearchLabel2.setFont(new java.awt.Font("Times New Roman", 1, 12));
        SearchLabel2.setText("Search By");

        SearchComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "ID", "First Name", "Last Name", "IC", "Contact Person" }));

        SearcjButton2.setText("Search");

        javax.swing.GroupLayout SearchPanel2Layout = new javax.swing.GroupLayout(SearchPanel2);
        SearchPanel2.setLayout(SearchPanel2Layout);
        SearchPanel2Layout.setHorizontalGroup(
            SearchPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SearchPanel2Layout.createSequentialGroup()
                .addComponent(SearchLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(SearchComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(SearchTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(SearcjButton2)
                .addContainerGap(849, Short.MAX_VALUE))
        );
        SearchPanel2Layout.setVerticalGroup(
            SearchPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SearchPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(SearchLabel2)
                .addComponent(SearchComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(SearchTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(SearcjButton2))
        );

        PagePane2l.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        PageLabel2.setFont(new java.awt.Font("Times New Roman", 1, 12));
        PageLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        PageLabel2.setText("Page ");

        CurrentPageLAbel2.setFont(new java.awt.Font("Times New Roman", 1, 12));
        CurrentPageLAbel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        CurrentPageLAbel2.setText("?");

        TotalPageLabel2.setFont(new java.awt.Font("Times New Roman", 1, 12));
        TotalPageLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        TotalPageLabel2.setText("?");

        Slesh2.setFont(new java.awt.Font("Times New Roman", 1, 12));
        Slesh2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Slesh2.setText("/");

        Separator5.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        Separator6.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        JumptoLabel2.setFont(new java.awt.Font("Times New Roman", 1, 12));
        JumptoLabel2.setText("Jump to");

        JumpButton2.setText("Jump");

        TotalRecordLabel2.setFont(new java.awt.Font("Times New Roman", 1, 12));
        TotalRecordLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        TotalRecordLabel2.setText("?");

        RecordFoundLabel2.setFont(new java.awt.Font("Times New Roman", 1, 12));
        RecordFoundLabel2.setText("Records Found");

        Separator7.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        PreviousButton2.setText("Previous");

        NextButton2.setText("Next");

        javax.swing.GroupLayout PagePane2lLayout = new javax.swing.GroupLayout(PagePane2l);
        PagePane2l.setLayout(PagePane2lLayout);
        PagePane2lLayout.setHorizontalGroup(
            PagePane2lLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PagePane2lLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Separator5, javax.swing.GroupLayout.PREFERRED_SIZE, 4, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(PreviousButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(PageLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(CurrentPageLAbel2, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(Slesh2, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(TotalPageLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(NextButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(16, 16, 16)
                .addComponent(Separator6, javax.swing.GroupLayout.PREFERRED_SIZE, 4, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(TotalRecordLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(14, 14, 14)
                .addComponent(RecordFoundLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(Separator7, javax.swing.GroupLayout.PREFERRED_SIZE, 6, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(27, 27, 27)
                .addComponent(JumptoLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(JumptoTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(JumpButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(533, Short.MAX_VALUE))
        );
        PagePane2lLayout.setVerticalGroup(
            PagePane2lLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PagePane2lLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PagePane2lLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(PagePane2lLayout.createSequentialGroup()
                        .addComponent(NextButton2)
                        .addGap(12, 12, 12))
                    .addGroup(PagePane2lLayout.createSequentialGroup()
                        .addComponent(Separator5, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePane2lLayout.createSequentialGroup()
                        .addComponent(PreviousButton2)
                        .addGap(12, 12, 12))
                    .addGroup(PagePane2lLayout.createSequentialGroup()
                        .addComponent(PageLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePane2lLayout.createSequentialGroup()
                        .addComponent(CurrentPageLAbel2, javax.swing.GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePane2lLayout.createSequentialGroup()
                        .addComponent(Slesh2, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePane2lLayout.createSequentialGroup()
                        .addComponent(TotalPageLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePane2lLayout.createSequentialGroup()
                        .addComponent(Separator6, javax.swing.GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePane2lLayout.createSequentialGroup()
                        .addComponent(TotalRecordLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePane2lLayout.createSequentialGroup()
                        .addComponent(RecordFoundLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePane2lLayout.createSequentialGroup()
                        .addComponent(Separator7, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePane2lLayout.createSequentialGroup()
                        .addComponent(JumptoLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePane2lLayout.createSequentialGroup()
                        .addComponent(JumptoTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePane2lLayout.createSequentialGroup()
                        .addComponent(JumpButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(12, 12, 12))))
        );

        javax.swing.GroupLayout DealerPanelSupportLayout = new javax.swing.GroupLayout(DealerPanelSupport);
        DealerPanelSupport.setLayout(DealerPanelSupportLayout);
        DealerPanelSupportLayout.setHorizontalGroup(
            DealerPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, DealerPanelSupportLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(DealerPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(PagePane2l, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(DealerLAbel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(FunctionPanel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(SearchPanel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(DealerScrollPane, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 1278, Short.MAX_VALUE))
                .addContainerGap())
        );
        DealerPanelSupportLayout.setVerticalGroup(
            DealerPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(DealerPanelSupportLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(DealerLAbel, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(SearchPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(DealerScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 273, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(PagePane2l, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 298, Short.MAX_VALUE)
                .addComponent(FunctionPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        javax.swing.GroupLayout DealerPanelLayout = new javax.swing.GroupLayout(DealerPanel);
        DealerPanel.setLayout(DealerPanelLayout);
        DealerPanelLayout.setHorizontalGroup(
            DealerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(DealerPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(DealerPanelSupport, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        DealerPanelLayout.setVerticalGroup(
            DealerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(DealerPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(DealerPanelSupport, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        TruckPanelSupport.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.LOWERED));

        TruckLabel.setFont(new java.awt.Font("Times New Roman", 3, 14));
        TruckLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        TruckLabel.setText("Truck");
        TruckLabel.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        TruckTable.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        TruckTable.setFont(new java.awt.Font("Times New Roman", 1, 12));
        TruckTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null}
            },
            new String [] {
                " ID", "Plate Number", "Manufacturer", "Model", "Year"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        TruckScrollPane.setViewportView(TruckTable);
        TruckTable.getColumnModel().getColumn(0).setResizable(false);
        TruckTable.getColumnModel().getColumn(1).setResizable(false);
        TruckTable.getColumnModel().getColumn(2).setResizable(false);
        TruckTable.getColumnModel().getColumn(3).setResizable(false);
        TruckTable.getColumnModel().getColumn(4).setResizable(false);

        FunctionPanel3.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        AddButton3.setText("Add");
        AddButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                AddButton3ActionPerformed(evt);
            }
        });

        DeleteButton3.setText("Delete");

        ViewButton3.setText("View");

        CancelButton4.setText("Cancel");
        CancelButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CancelButton4ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout FunctionPanel3Layout = new javax.swing.GroupLayout(FunctionPanel3);
        FunctionPanel3.setLayout(FunctionPanel3Layout);
        FunctionPanel3Layout.setHorizontalGroup(
            FunctionPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(FunctionPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(AddButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(DeleteButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 909, Short.MAX_VALUE)
                .addComponent(ViewButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(CancelButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        FunctionPanel3Layout.setVerticalGroup(
            FunctionPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(FunctionPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(FunctionPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(CancelButton4)
                    .addComponent(ViewButton3)
                    .addComponent(AddButton3, javax.swing.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE)
                    .addComponent(DeleteButton3))
                .addContainerGap())
        );

        SearchPanel3.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        SearchLabel3.setFont(new java.awt.Font("Times New Roman", 1, 12));
        SearchLabel3.setText("Search By");

        SearchComboBox3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "ID", "Plate Number", "Manufacturer", "Model", "Year" }));

        SearchButton3.setText("Search");

        javax.swing.GroupLayout SearchPanel3Layout = new javax.swing.GroupLayout(SearchPanel3);
        SearchPanel3.setLayout(SearchPanel3Layout);
        SearchPanel3Layout.setHorizontalGroup(
            SearchPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SearchPanel3Layout.createSequentialGroup()
                .addComponent(SearchLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(SearchComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(SearchTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(SearchButton3)
                .addContainerGap(849, Short.MAX_VALUE))
        );
        SearchPanel3Layout.setVerticalGroup(
            SearchPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SearchPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(SearchLabel3)
                .addComponent(SearchComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(SearchTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(SearchButton3))
        );

        PagePanel3.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        PageLabel3.setFont(new java.awt.Font("Times New Roman", 1, 12));
        PageLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        PageLabel3.setText("Page ");

        CurrentPageLabel3.setFont(new java.awt.Font("Times New Roman", 1, 12));
        CurrentPageLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        CurrentPageLabel3.setText("?");

        TotalPageLabel3.setFont(new java.awt.Font("Times New Roman", 1, 12));
        TotalPageLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        TotalPageLabel3.setText("?");

        Slesh3.setFont(new java.awt.Font("Times New Roman", 1, 12));
        Slesh3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Slesh3.setText("/");

        Separator8.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        Separator9.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        JumptoLabel3.setFont(new java.awt.Font("Times New Roman", 1, 12));
        JumptoLabel3.setText("Jump to");

        JumpButton3.setText("Jump");

        TotalRecordLabel3.setFont(new java.awt.Font("Times New Roman", 1, 12));
        TotalRecordLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        TotalRecordLabel3.setText("?");

        RecordFoundLabel3.setFont(new java.awt.Font("Times New Roman", 1, 12));
        RecordFoundLabel3.setText("Records Found");

        Separator10.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        PreviousButton3.setText("Previous");

        NextButton3.setText("Next");

        javax.swing.GroupLayout PagePanel3Layout = new javax.swing.GroupLayout(PagePanel3);
        PagePanel3.setLayout(PagePanel3Layout);
        PagePanel3Layout.setHorizontalGroup(
            PagePanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PagePanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Separator8, javax.swing.GroupLayout.PREFERRED_SIZE, 4, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(PreviousButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(PageLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(CurrentPageLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(Slesh3, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(TotalPageLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(NextButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(16, 16, 16)
                .addComponent(Separator9, javax.swing.GroupLayout.PREFERRED_SIZE, 4, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(TotalRecordLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(14, 14, 14)
                .addComponent(RecordFoundLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(Separator10, javax.swing.GroupLayout.PREFERRED_SIZE, 6, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(27, 27, 27)
                .addComponent(JumptoLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(JumptoTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(JumpButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(533, Short.MAX_VALUE))
        );
        PagePanel3Layout.setVerticalGroup(
            PagePanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PagePanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PagePanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(PagePanel3Layout.createSequentialGroup()
                        .addComponent(NextButton3)
                        .addGap(12, 12, 12))
                    .addGroup(PagePanel3Layout.createSequentialGroup()
                        .addComponent(Separator8, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePanel3Layout.createSequentialGroup()
                        .addComponent(PreviousButton3)
                        .addGap(12, 12, 12))
                    .addGroup(PagePanel3Layout.createSequentialGroup()
                        .addComponent(PageLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePanel3Layout.createSequentialGroup()
                        .addComponent(CurrentPageLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePanel3Layout.createSequentialGroup()
                        .addComponent(Slesh3, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePanel3Layout.createSequentialGroup()
                        .addComponent(TotalPageLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePanel3Layout.createSequentialGroup()
                        .addComponent(Separator9, javax.swing.GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePanel3Layout.createSequentialGroup()
                        .addComponent(TotalRecordLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePanel3Layout.createSequentialGroup()
                        .addComponent(RecordFoundLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePanel3Layout.createSequentialGroup()
                        .addComponent(Separator10, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePanel3Layout.createSequentialGroup()
                        .addComponent(JumptoLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePanel3Layout.createSequentialGroup()
                        .addComponent(JumptoTextField3, javax.swing.GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE)
                        .addGap(11, 11, 11))
                    .addGroup(PagePanel3Layout.createSequentialGroup()
                        .addComponent(JumpButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(12, 12, 12))))
        );

        javax.swing.GroupLayout TruckPanelSupportLayout = new javax.swing.GroupLayout(TruckPanelSupport);
        TruckPanelSupport.setLayout(TruckPanelSupportLayout);
        TruckPanelSupportLayout.setHorizontalGroup(
            TruckPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, TruckPanelSupportLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(TruckPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(PagePanel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(TruckLabel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(FunctionPanel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(SearchPanel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(TruckScrollPane, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 1278, Short.MAX_VALUE))
                .addContainerGap())
        );
        TruckPanelSupportLayout.setVerticalGroup(
            TruckPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(TruckPanelSupportLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(TruckLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(SearchPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(TruckScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 273, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(PagePanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 298, Short.MAX_VALUE)
                .addComponent(FunctionPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        javax.swing.GroupLayout TruckPanelLayout = new javax.swing.GroupLayout(TruckPanel);
        TruckPanel.setLayout(TruckPanelLayout);
        TruckPanelLayout.setHorizontalGroup(
            TruckPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(TruckPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(TruckPanelSupport, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        TruckPanelLayout.setVerticalGroup(
            TruckPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(TruckPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(TruckPanelSupport, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        CompanyInfo.setFont(new java.awt.Font("Times New Roman", 3, 36));
        CompanyInfo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        CompanyInfo.setText("Company Info");

        javax.swing.GroupLayout MultiPanelSupportLayout = new javax.swing.GroupLayout(MultiPanelSupport);
        MultiPanelSupport.setLayout(MultiPanelSupportLayout);
        MultiPanelSupportLayout.setHorizontalGroup(
            MultiPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(MultiPanelSupportLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(ProfilePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
            .addGroup(MultiPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(SchediulePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(MultiPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(HelpPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(MultiPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(MultiPanelSupportLayout.createSequentialGroup()
                    .addComponent(FunctionPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(1128, Short.MAX_VALUE)))
            .addGroup(MultiPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(MultiPanelSupportLayout.createSequentialGroup()
                    .addGap(183, 183, 183)
                    .addComponent(SettingPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(951, Short.MAX_VALUE)))
            .addGroup(MultiPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(EmployeePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(MultiPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(DealerPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(MultiPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(TruckPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(MultiPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(MultiPanelSupportLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(CompanyInfo, javax.swing.GroupLayout.DEFAULT_SIZE, 1304, Short.MAX_VALUE)
                    .addContainerGap()))
        );
        MultiPanelSupportLayout.setVerticalGroup(
            MultiPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(MultiPanelSupportLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(ProfilePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
            .addGroup(MultiPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(SchediulePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(MultiPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(HelpPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(MultiPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(MultiPanelSupportLayout.createSequentialGroup()
                    .addGap(145, 145, 145)
                    .addComponent(FunctionPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGap(145, 145, 145)))
            .addGroup(MultiPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(MultiPanelSupportLayout.createSequentialGroup()
                    .addGap(155, 155, 155)
                    .addComponent(SettingPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(544, Short.MAX_VALUE)))
            .addGroup(MultiPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(EmployeePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(MultiPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(DealerPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(MultiPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(TruckPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(MultiPanelSupportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(MultiPanelSupportLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(CompanyInfo, javax.swing.GroupLayout.DEFAULT_SIZE, 786, Short.MAX_VALUE)
                    .addContainerGap()))
        );

        javax.swing.GroupLayout MultiPanelLayout = new javax.swing.GroupLayout(MultiPanel);
        MultiPanel.setLayout(MultiPanelLayout);
        MultiPanelLayout.setHorizontalGroup(
            MultiPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(MultiPanelSupport, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        MultiPanelLayout.setVerticalGroup(
            MultiPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(MultiPanelSupport, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout BodyLayout = new javax.swing.GroupLayout(Body);
        Body.setLayout(BodyLayout);
        BodyLayout.setHorizontalGroup(
            BodyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(BodyLayout.createSequentialGroup()
                .addComponent(Menu, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(MultiPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        BodyLayout.setVerticalGroup(
            BodyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(Menu, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(MultiPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout MainLayout = new javax.swing.GroupLayout(Main);
        Main.setLayout(MainLayout);
        MainLayout.setHorizontalGroup(
            MainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MainLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(MainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(Body, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(Header, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        MainLayout.setVerticalGroup(
            MainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(MainLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Header, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(Body, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(Main, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(Main, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void ProfileButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ProfileButtonActionPerformed
        ProfilePanel.setVisible(true);
        FunctionPanel.setVisible(false);
        SchediulePanel.setVisible(false);
        HelpPanel.setVisible(false);
        EmployeePanel.setVisible(false);
        DealerPanel.setVisible(false);
        TruckPanel.setVisible(false);
}//GEN-LAST:event_ProfileButtonActionPerformed

private void FunctionButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_FunctionButtonActionPerformed
        ProfilePanel.setVisible(false);
        FunctionPanel.setVisible(true);
        SchediulePanel.setVisible(false);
        HelpPanel.setVisible(false);
        EmployeePanel.setVisible(false);
        DealerPanel.setVisible(false);
        TruckPanel.setVisible(false);
}//GEN-LAST:event_FunctionButtonActionPerformed

private void ScheduleButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ScheduleButtonActionPerformed
        ProfilePanel.setVisible(false);
        FunctionPanel.setVisible(false);
        SchediulePanel.setVisible(true);
        HelpPanel.setVisible(false);
        EmployeePanel.setVisible(false);
        DealerPanel.setVisible(false);
        TruckPanel.setVisible(false);
}//GEN-LAST:event_ScheduleButtonActionPerformed

private void HelpButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_HelpButtonActionPerformed
        ProfilePanel.setVisible(false);
        FunctionPanel.setVisible(false);
        SchediulePanel.setVisible(false);
        HelpPanel.setVisible(true);
        EmployeePanel.setVisible(false);
        DealerPanel.setVisible(false);
        TruckPanel.setVisible(false);
}//GEN-LAST:event_HelpButtonActionPerformed

private void LogoutButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LogoutButtonActionPerformed
        this.setVisible(false);
        new LoginPage().setVisible(true);
}//GEN-LAST:event_LogoutButtonActionPerformed

private void FunctionPanelMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_FunctionPanelMouseExited
        FunctionPanel.setVisible(false);
        SettingPanel.setVisible(false); //Added
}//GEN-LAST:event_FunctionPanelMouseExited

private void SettingButtonMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_SettingButtonMouseEntered
        FunctionPanel.setVisible(true);
}//GEN-LAST:event_SettingButtonMouseEntered

private void ProductionButtonMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ProductionButtonMouseEntered
        FunctionPanel.setVisible(true);
}//GEN-LAST:event_ProductionButtonMouseEntered

private void FA_buttonMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_FA_buttonMouseEntered
        FunctionPanel.setVisible(true);
}//GEN-LAST:event_FA_buttonMouseEntered

private void DistributionButtonMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_DistributionButtonMouseEntered
        FunctionPanel.setVisible(true);
}//GEN-LAST:event_DistributionButtonMouseEntered

private void HistoricalDataButtonMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_HistoricalDataButtonMouseEntered
        FunctionPanel.setVisible(true);
}//GEN-LAST:event_HistoricalDataButtonMouseEntered

private void SettingButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SettingButtonActionPerformed
        SettingPanel.setVisible(true);
        ProductionButton.setEnabled(false);
        FA_button.setEnabled(false);
        DistributionButton.setEnabled(false);
        HistoricalDataButton.setEnabled(false);
}//GEN-LAST:event_SettingButtonActionPerformed

private void ProductionButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ProductionButtonActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_ProductionButtonActionPerformed

private void FA_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_FA_buttonActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_FA_buttonActionPerformed

private void DistributionButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_DistributionButtonActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_DistributionButtonActionPerformed

private void HistoricalDataButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_HistoricalDataButtonActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_HistoricalDataButtonActionPerformed

private void SettingPanelMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_SettingPanelMouseEntered
        FunctionPanel.setVisible(true);
}//GEN-LAST:event_SettingPanelMouseEntered

private void SettingPanelMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_SettingPanelMouseExited
        SettingPanel.setVisible(false);
        ProductionButton.setEnabled(true);
        FA_button.setEnabled(true);
        DistributionButton.setEnabled(true);
        HistoricalDataButton.setEnabled(true);
}//GEN-LAST:event_SettingPanelMouseExited



private void EmployeeButtonMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_EmployeeButtonMouseEntered
        FunctionPanel.setVisible(true);
        SettingPanel.setVisible(true);
        ProductionButton.setEnabled(false);
        FA_button.setEnabled(false);
        DistributionButton.setEnabled(false);
        HistoricalDataButton.setEnabled(false);
}//GEN-LAST:event_EmployeeButtonMouseEntered

private void DealerButtonMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_DealerButtonMouseEntered
        FunctionPanel.setVisible(true);
        SettingPanel.setVisible(true);
        ProductionButton.setEnabled(false);
        FA_button.setEnabled(false);
        DistributionButton.setEnabled(false);
        HistoricalDataButton.setEnabled(false);
}//GEN-LAST:event_DealerButtonMouseEntered

private void TruckButtonMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_TruckButtonMouseEntered
        FunctionPanel.setVisible(true);
        SettingPanel.setVisible(true);
        ProductionButton.setEnabled(false);
        FA_button.setEnabled(false);
        DistributionButton.setEnabled(false);
        HistoricalDataButton.setEnabled(false);
}//GEN-LAST:event_TruckButtonMouseEntered

private void FunctionPanelMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_FunctionPanelMouseEntered
        FunctionPanel.setVisible(true);
}//GEN-LAST:event_FunctionPanelMouseEntered

private void MultiPanelSupportMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_MultiPanelSupportMouseEntered
        FunctionPanel.setVisible(false);
}//GEN-LAST:event_MultiPanelSupportMouseEntered

    private void EmployeeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EmployeeButtonActionPerformed
        EmployeePanel.setVisible(true);
        FunctionPanel.setVisible(false);
        SettingPanel.setVisible(false);
        ProductionButton.setEnabled(true);
        FA_button.setEnabled(true);
        DistributionButton.setEnabled(true);
        HistoricalDataButton.setEnabled(true);
        
        try
        {
            // load mysql driver
            Class.forName("com.mysql.jdbc.Driver");
            con = DriverManager.getConnection(host, username, password);


            //SQL query command
            String SQL = "SELECT EMP_ID, EMP_FNAME, EMP_LNAME, EMP_IC, EMP_EMAIL, EMP_CONTACT, EMP_JOBTITLE, EMP_STATUS FROM employee";
            stmt = con.createStatement();
            rset = stmt.executeQuery(SQL);
            

            ResultSetMetaData md = (ResultSetMetaData) rset.getMetaData();
            int columnCount = md.getColumnCount();
            Vector columns = new Vector(columnCount);

            System.out.println(columnCount);
            //store column names
            for(int i=1; i<=columnCount; i++)
                columns.add(md.getColumnName(i));
            
            Vector data = new Vector();
            Vector row;

            //store row data
            while(rset.next())
            {
                
                row = new Vector(columnCount);
                for(int i=1; i<=columnCount; i++)
                    row.add(rset.getString(i));
                data.add(row);
            }

            Tmodel.setDataVector(data, columns);
            EmployeeTable.setModel(Tmodel);
        }
        catch (SQLException e)
        {
            System.out.println("SQL Exception: "+ e.toString());
        }
        catch (ClassNotFoundException cE)
        {
            System.out.println("Class Not Found Exception: "+ cE.toString());
        }//end of try
        
        
    }//GEN-LAST:event_EmployeeButtonActionPerformed

    private void DealerButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_DealerButtonActionPerformed
        DealerPanel.setVisible(true);
        FunctionPanel.setVisible(false);
        SettingPanel.setVisible(false);
        ProductionButton.setEnabled(true);
        FA_button.setEnabled(true);
        DistributionButton.setEnabled(true);
        HistoricalDataButton.setEnabled(true);
        
        
        try
        {
            // load mysql driver
            Class.forName("com.mysql.jdbc.Driver");
            con = DriverManager.getConnection(host, username, password);


            //SQL query command
            String SQL = "SELECT D_ID,D_FNAME,D_LNAME,D_IC,D_EMAIL,D_CONTACT,D_CITY,D_STATUS FROM DEALER";
            stmt = con.createStatement();
            rset = stmt.executeQuery(SQL);
            

            ResultSetMetaData md = (ResultSetMetaData) rset.getMetaData();
            int columnCount = md.getColumnCount();
            Vector columns = new Vector(columnCount);

            System.out.println(columnCount);
            //store column names
            for(int i=1; i<=columnCount; i++)
                columns.add(md.getColumnName(i));
            
            Vector data = new Vector();
            Vector row;

            //store row data
            while(rset.next())
            {
                
                row = new Vector(columnCount);
                for(int i=1; i<=columnCount; i++)
                    row.add(rset.getString(i));
                data.add(row);
            }

            Tmodel.setDataVector(data, columns);
            DealerTable.setModel(Tmodel);
        }
        catch (SQLException e)
        {
            System.out.println("SQL Exception: "+ e.toString());
        }
        catch (ClassNotFoundException cE)
        {
            System.out.println("Class Not Found Exception: "+ cE.toString());
        }//end of try
    }//GEN-LAST:event_DealerButtonActionPerformed

    private void TruckButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_TruckButtonActionPerformed
        TruckPanel.setVisible(true);
        FunctionPanel.setVisible(false);
        SettingPanel.setVisible(false);
        ProductionButton.setEnabled(true);
        FA_button.setEnabled(true);
        DistributionButton.setEnabled(true);
        HistoricalDataButton.setEnabled(true);
        
       try
        {
            // load mysql driver
            Class.forName("com.mysql.jdbc.Driver");
            con = DriverManager.getConnection(host, username, password);


            //SQL query command
            String SQL = "SELECT * FROM TRUCK";
            stmt = con.createStatement();
            rset = stmt.executeQuery(SQL);
            

            ResultSetMetaData md = (ResultSetMetaData) rset.getMetaData();
            int columnCount = md.getColumnCount();
            Vector columns = new Vector(columnCount);

            System.out.println(columnCount);
            //store column names
            for(int i=1; i<=columnCount; i++)
                columns.add(md.getColumnName(i));
            
            Vector data = new Vector();
            Vector row;

            //store row data
            while(rset.next())
            {
                
                row = new Vector(columnCount);
                for(int i=1; i<=columnCount; i++)
                    row.add(rset.getString(i));
                data.add(row);
            }

            Tmodel.setDataVector(data, columns);
            TruckTable.setModel(Tmodel);
        }
        catch (SQLException e)
        {
            System.out.println("SQL Exception: "+ e.toString());
        }
        catch (ClassNotFoundException cE)
        {
            System.out.println("Class Not Found Exception: "+ cE.toString());
        }//end of try

    }//GEN-LAST:event_TruckButtonActionPerformed

    private void CancelButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CancelButton4ActionPerformed
        TruckPanel.setVisible(false);
    }//GEN-LAST:event_CancelButton4ActionPerformed

    private void CancelButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CancelButton3ActionPerformed
        DealerPanel.setVisible(false);
    }//GEN-LAST:event_CancelButton3ActionPerformed

    private void CancelButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CancelButton2ActionPerformed
        EmployeePanel.setVisible(false);
    }//GEN-LAST:event_CancelButton2ActionPerformed

    private void CancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CancelButtonActionPerformed
        ProfilePanel.setVisible(false);
    }//GEN-LAST:event_CancelButtonActionPerformed

    private void ChangeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ChangeButtonActionPerformed
        new PasswordSetting().setVisible(true);
    }//GEN-LAST:event_ChangeButtonActionPerformed

    private void AddButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AddButtonActionPerformed

        new Employee().setVisible(true);
    }//GEN-LAST:event_AddButtonActionPerformed

    private void AddButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AddButton2ActionPerformed
        //this.setFocusableWindowState(false);
        new Dealer("Add").setVisible(true);
    }//GEN-LAST:event_AddButton2ActionPerformed

    private void AddButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AddButton3ActionPerformed
        //this.setFocusableWindowState(false);
        new Truck().setVisible(true);
    }//GEN-LAST:event_AddButton3ActionPerformed

    private void ViewButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ViewButton2ActionPerformed
        new Dealer("Save").setVisible(true);
    }//GEN-LAST:event_ViewButton2ActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new MainPage().setVisible(true);
            }
        });
    }

   
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton AddButton;
    private javax.swing.JButton AddButton2;
    private javax.swing.JButton AddButton3;
    private javax.swing.JTextArea Address;
    private javax.swing.JLabel AddressLabel;
    private javax.swing.JPanel Body;
    private javax.swing.JButton CancelButton;
    private javax.swing.JButton CancelButton2;
    private javax.swing.JButton CancelButton3;
    private javax.swing.JButton CancelButton4;
    private javax.swing.JButton ChangeButton;
    private javax.swing.JTextField City;
    private javax.swing.JLabel CityLabel;
    private javax.swing.JLabel CompanyInfo;
    private javax.swing.JLabel CompanyName;
    private javax.swing.JTextField Contact;
    private javax.swing.JLabel ContactLabel;
    private javax.swing.JLabel CurrentPageLAbel2;
    private javax.swing.JLabel CurrentPageLabel;
    private javax.swing.JLabel CurrentPageLabel3;
    private javax.swing.JButton DealerButton;
    private javax.swing.JLabel DealerLAbel;
    private javax.swing.JPanel DealerPanel;
    private javax.swing.JPanel DealerPanelSupport;
    private javax.swing.JScrollPane DealerScrollPane;
    private javax.swing.JTable DealerTable;
    private javax.swing.JButton DeleteButton;
    private javax.swing.JButton DeleteButton2;
    private javax.swing.JButton DeleteButton3;
    private javax.swing.JButton DistributionButton;
    private javax.swing.JLabel EG_Contact;
    private javax.swing.JLabel EG_IC;
    private javax.swing.JTextField Email;
    private javax.swing.JLabel EmailLabel;
    private javax.swing.JButton EmployeeButton;
    private javax.swing.JLabel EmployeeLabel;
    private javax.swing.JPanel EmployeePanel;
    private javax.swing.JPanel EmployeePanelSupport;
    private javax.swing.JScrollPane EmployeeScrollPane;
    private javax.swing.JTable EmployeeTable;
    private javax.swing.JButton FA_button;
    private javax.swing.JTextField FirstName;
    private javax.swing.JLabel FirstnameLAbel;
    private javax.swing.JPanel FuctionPanel1;
    private javax.swing.JButton FunctionButton;
    private javax.swing.JPanel FunctionPanel;
    private javax.swing.JPanel FunctionPanel2;
    private javax.swing.JPanel FunctionPanel3;
    private javax.swing.JComboBox Gender;
    private javax.swing.JLabel GenderLabel;
    private javax.swing.JPanel Header;
    private javax.swing.JButton HelpButton;
    private javax.swing.JLabel HelpInfo;
    private javax.swing.JPanel HelpPanel;
    private javax.swing.JButton HistoricalDataButton;
    private javax.swing.JTextField IC;
    private javax.swing.JLabel ICLabel;
    private javax.swing.JLabel ID;
    private javax.swing.JLabel IDLabel;
    private javax.swing.JLabel Instruction;
    private javax.swing.JComboBox JobTitle;
    private javax.swing.JLabel JobTitleLabel;
    private javax.swing.JButton JumpButton;
    private javax.swing.JButton JumpButton2;
    private javax.swing.JButton JumpButton3;
    private javax.swing.JLabel JumptoLabel;
    private javax.swing.JLabel JumptoLabel2;
    private javax.swing.JLabel JumptoLabel3;
    private javax.swing.JTextField JumptoTextField;
    private javax.swing.JTextField JumptoTextField2;
    private javax.swing.JTextField JumptoTextField3;
    private javax.swing.JTextField LastName;
    private javax.swing.JLabel LastNameLabel;
    private javax.swing.JLabel Logo;
    private javax.swing.JButton LogoutButton;
    private javax.swing.JPanel Main;
    private javax.swing.JPanel Menu;
    private javax.swing.JPanel MultiPanel;
    private javax.swing.JPanel MultiPanelSupport;
    private javax.swing.JButton NextButton;
    private javax.swing.JButton NextButton2;
    private javax.swing.JButton NextButton3;
    private javax.swing.JLabel PageLabel;
    private javax.swing.JLabel PageLabel2;
    private javax.swing.JLabel PageLabel3;
    private javax.swing.JPanel PagePane2l;
    private javax.swing.JPanel PagePanel;
    private javax.swing.JPanel PagePanel3;
    private javax.swing.JLabel PasswordLabel;
    private javax.swing.JLabel Picture;
    private javax.swing.JTextField PostCode;
    private javax.swing.JLabel PostCodeLabel;
    private javax.swing.JButton PreviousButton;
    private javax.swing.JButton PreviousButton2;
    private javax.swing.JButton PreviousButton3;
    private javax.swing.JButton ProductionButton;
    private javax.swing.JButton ProfileButton;
    private javax.swing.JPanel ProfileInformationPanel;
    private javax.swing.JPanel ProfilePanel;
    private javax.swing.JComboBox Race;
    private javax.swing.JLabel RaceLabel;
    private javax.swing.JLabel RecordFoundLabel;
    private javax.swing.JLabel RecordFoundLabel2;
    private javax.swing.JLabel RecordFoundLabel3;
    private javax.swing.JComboBox Religion;
    private javax.swing.JLabel ReligionLabel;
    private javax.swing.JButton SaveButton;
    private javax.swing.JPanel SchediulePanel;
    private javax.swing.JButton ScheduleButton;
    private javax.swing.JLabel ScheduleInfo;
    private javax.swing.JButton SearchButton;
    private javax.swing.JButton SearchButton3;
    private javax.swing.JComboBox SearchComboBox;
    private javax.swing.JComboBox SearchComboBox2;
    private javax.swing.JComboBox SearchComboBox3;
    private javax.swing.JLabel SearchLabel;
    private javax.swing.JLabel SearchLabel2;
    private javax.swing.JLabel SearchLabel3;
    private javax.swing.JPanel SearchPanel;
    private javax.swing.JPanel SearchPanel2;
    private javax.swing.JPanel SearchPanel3;
    private javax.swing.JTextField SearchTextField;
    private javax.swing.JTextField SearchTextField2;
    private javax.swing.JTextField SearchTextField3;
    private javax.swing.JButton SearcjButton2;
    private javax.swing.JSeparator Separator;
    private javax.swing.JLabel Separator10;
    private javax.swing.JLabel Separator2;
    private javax.swing.JLabel Separator3;
    private javax.swing.JLabel Separator4;
    private javax.swing.JLabel Separator5;
    private javax.swing.JLabel Separator6;
    private javax.swing.JLabel Separator7;
    private javax.swing.JLabel Separator8;
    private javax.swing.JLabel Separator9;
    private javax.swing.JButton SettingButton;
    private javax.swing.JPanel SettingPanel;
    private javax.swing.JLabel Slesh;
    private javax.swing.JLabel Slesh2;
    private javax.swing.JLabel Slesh3;
    private javax.swing.JLabel Status;
    private javax.swing.JLabel StatusLabel;
    private javax.swing.JLabel SupportLeft;
    private javax.swing.JLabel SupportRight;
    private javax.swing.JLabel TotalPageLabel;
    private javax.swing.JLabel TotalPageLabel2;
    private javax.swing.JLabel TotalPageLabel3;
    private javax.swing.JLabel TotalRecordLabel;
    private javax.swing.JLabel TotalRecordLabel2;
    private javax.swing.JLabel TotalRecordLabel3;
    private javax.swing.JButton TruckButton;
    private javax.swing.JLabel TruckLabel;
    private javax.swing.JPanel TruckPanel;
    private javax.swing.JPanel TruckPanelSupport;
    private javax.swing.JScrollPane TruckScrollPane;
    private javax.swing.JTable TruckTable;
    private javax.swing.JTextField Username;
    private javax.swing.JLabel UsernameLabel;
    private javax.swing.JButton ViewButton;
    private javax.swing.JButton ViewButton2;
    private javax.swing.JButton ViewButton3;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JScrollPane jScrollPane1;
    // End of variables declaration//GEN-END:variables

}
